Hi, Is there a way to find out the type of a file? eaither it is a TabDelimited or Excel97To2003 or Xlsx or csv or earlier version of 97 ? Because we will always receive single type of format as .Dat....false) { //save to pdf wb.Save(@“C:\Downloads\out.pdf”); } } private... It means the html files generated by Ms-Excel . It is not possible...